<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app">
  </div>

  <script src="../dist/vue.js"></script>
  <script>
    let Comp = Vue.component('comp', {
      template: `<div>lan pang d comp</div>`
    })
    const vm = new Vue({
      el: '#app',
      render(h) {
        return h(Comp)
      },
      data() {
        return {
          msg: 'lanpang',
          age: 18,
          obj: {
            name: 'wang',
            count: 1
          }
        }
      },
      mounted() {
        this.age = 19;
      },
      methods: {
        handler() {
          console.log('test');
        }
      },
    });
    console.log(Vue.prototype);
    console.log(vm.$options);
    console.log(vm.$options.render);
  </script>
</body>

</html>